﻿
@{
    ViewBag.Title = "SendMessage";
}

@Html.Partial("_MessageMenuBar")

<h2>Send a message</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Message</legend>
        @using (Html.BeginForm("send", "send", "Message", FormMethod.Post,new {enctype="multipart/form-data"}))
        { 
            
            <table>
                <tr>
                    <td>
                        @Html.Label("To(Users):")
                    </td>

                    <td style = "width:500px">
                        @Html.TextBox("userRecipients", "",new { @style = "width: 500px;" })
                    </td>
                </tr>

                <tr>
                    <td>
                        @Html.Label("To(Groups):")
                    </td>

                    <td style = "width:500px">
                        @Html.TextBox("groupRecipients", "",new { @style = "width: 500px;" })
                    </td>
                </tr>

                <tr>
                    <td>
                        @Html.Label("Title:")
                    </td>

                    <td style = "width:500px">
                        @Html.TextBox("title", "", new { @style = "width: 500px;" })
                    </td>
                </tr>

                <tr>
                    <td>
                        @Html.Label("Message:")
                    </td>

                    <td style = "width:500px">
                        @Html.TextArea("message", "", new { @style = "width: 500px;" })
                    </td>
                </tr>
            
            </table>
           
            <input type="submit" value="Send message" /> 
        }

    </fieldset>
}

